<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./lib/mui/css/mui.css">
    <link rel="stylesheet" href="./lib/fontawesome/css/font-awesome.css">
    <link rel="stylesheet" href="./styles/index.css">

    <title>pyg</title>
</head>

<body>
    <!-- 头部样式 -->
    <div class="pyg_header">
        <div class="mui-input-row mui-search">
            <input type="search" class="mui-input-clear" placeholder="">
        </div>
    </div>

    <!-- 主体部分 -->
    <div class="pyg_mian">
        <!-- 轮播图 -->
        <div class="mui-slider"></div>
    </div>

    <!-- 导购部分 -->
    <div class="daoHan clearfix">
    </div>

    <!-- 商品列表部分 -->
    <div class="goods">

    </div>

    <!-- 底部样式 -->
    <div class="pyg_foot">

        <a href="index.html">
            <span class="fa fa-home"></span>
            <p>首页</p>
        </a>
        <a href="./pages/category.html">
            <span class="fa fa-home"></span>
            <p>分类</p>
        </a>
        <a href="#">
            <span class="fa fa-home"></span>
            <p>购物车</p>
        </a>
        <a href="#">
            <span class="fa fa-home"></span>
            <p>我的</p>
        </a>

    </div>


    <!-- 模板部分 -->
    <!-- 轮播图 -->
    <script type="text/template" id="tp">
        <div class="mui-slider-group mui-slider-loop">
            <!--支持循环，需要重复图片节点-->
            <div class="mui-slider-item mui-slider-item-duplicate">
                <a href="#"><img src="{{list[list.length-1].image_src}}" /></a>
            </div>
            {{each list value index}}
            <div class="mui-slider-item">
                <a href="#"><img src="{{value.image_src}}" /></a>
            </div>
            {{/each}}
            <!--支持循环，需要重复图片节点-->
            <div class="mui-slider-item mui-slider-item-duplicate">
                <a href="#"><img src="{{list[0].image_src}}" /></a>
            </div>
        </div>

        <div class="mui-slider-indicator">
            {{each list value index}}
            <div class="mui-indicator {{index===0?'mui-active':''}}"></div>
            {{/each}}
        </div>
    </script>

    <!-- 导购部分 -->
    <script type="text/template" id="dao">
        {{each list value index}}
        <a href="#">
            <img src="{{value.image_src}}" alt="">
        </a>
        {{/each}}
    </script>

    <!-- 商品列表部分 -->
    <script type="text/template" id="good">
        {{each list value index}}
        <div class="goods_title">
            <img src="{{value.group_img}}" alt="">
        </div>
        <ul class="clearfix">
            {{each value.goods value1 index1}}
            <li class="goods_list">
                <a href="#" class="goods_img">
                    <img src="{{value1.goods_small_logo}} " alt="">
                    <span class="goods_txt mui-ellipsis-2">{{value1.goods_name}} </span>
                    <span class="goods_price">￥ {{value1.goods_price}}</span>
                </a>
                <a href="#" class="mui-btn mui-btn-primary mui-btn-outlined goods_a1">找相似</a>
            </li>
            {{/each}}
        </ul>
        {{/each}}
    </script>

    <!-- 文件样式 插件引入 -->
    <script src="./lib/mui/js/mui.js"></script>
    <script src="./lib/arttemplate/template-web.js"></script>
    <script src="./lib/iscroll/iscroll.js"></script>
    <script src="./lib/zepto/zepto.js"></script>
    <script src="./js/index.js"></script>

</body>

</html>